<?php

//屏蔽错误
error_reporting( 0 );
//引入操作类
require_once '../inc/medoo.php';
//引入数据库
require_once '../inc/conn.php';
//引入配置
require_once '../inc/config.php';
//查询
//$datas = $database->select(dbtable0, "*",[""=>$]);
//foreach($datas as $data)

//获取数据
$z000=$_POST['y000']; //数据库自序号
//$z001=$showtime=date("Y-m-d H:i:s"); //创建日期时间
$z002=$showtime=date("Y-m-d H:i:s"); //变更日期时间
$z003=$_POST['y003'];
$z004=$_POST['y004'];
// $z100=$_POST['y100'];
// $z101=$_POST['y101'];
// $z102=$_POST['y102'];
// $z103=$_POST['y103'];
// $z104=$_POST['y104'];
// $z105=$_POST['y105'];
// $z106=$_POST['y106'];
// $z107=$_POST['y107'];
// $z108=$_POST['y108'];
// $z109=$_POST['y109'];

		//验证
		//echo "z000-".$z000." | ";
		//echo "z002-".$z002." | ";	
		//echo "z003-".$z003." | ";	
		//echo "z004-".$z004." | ";		
		// echo "z100-".$z100." | ";
		// echo "z101-".$z101." | ";
		// echo "z102-".$z102." | ";
		// echo "z103-".$z103." | ";
		// echo "z104-".$z104." | ";
		// echo "z105-".$z105." | ";
		// echo "z106-".$z106." | ";
		// echo "z107-".$z107." | ";
		// echo "z108-".$z108." | ";
		// echo "z109-".$z109." | ";

// 修改数据
$data = $database->update(dbtable0, [   //<!-- +++++++++++++++修改+++++++++++++++ -->
    "w002" => $z002,
	"w003" => $z003,
	"w004" => $z004

    // "w101" => $z101,
	// "w102" => $z102,
	// "w103" => $z103,
	// "w104" => $z104,
	// "w105" => $z105,
	// "w106" => $z106,
	// "w107" => $z107,
	// "w108" => $z108,
	// "w109" => $z109
], [
	"w000[=]" => $z000
]);

		// //验证
		// $z100=110;
		// $z107=$_POST['y107'];
		// $z108=$_POST['y108'];
		// $z109=$_POST['y109'];

		// $data = $database->update(dbtable0, [
		// 	"w107" => $z107,
		// 	"w108" => $z108,
		// 	"w109" => $z109
		// ], [
		// 	"w000[=]" => $z000
		// ]);


?>

<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<title><?php  echo sysname; ?> <?php echo version; ?> - Powered by Y.Z.W</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<link rel="stylesheet" href="../inc/layui/css/layui.css" media="all">
</head>

<body>
<?php include("../inc/head.php"); ?>

<fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
  <legend><a href="admin.php">回复完成，点击返回</a></legend>
</fieldset>

<?php include("../inc/foot.php"); ?>

</body>
</html>